import request from '@/utils/request'

/**
 * @description 列表
 * @param data
 * @returns
 */
export const getUserLabelGroupListApi: IGetUserLabelGroupListApi = function (params) {
  return request.get('htscrm/work/tag_groups', { params });
};

/**
 * @description 详情
 * @param data
 * @returns
 */
export const getUserLabelGroupDetailApi: IGetUserLabelGroupDetailApi = function (id) {
  return request.get(`htscrm/users/info/${id}`);
};

/**
 * @description 添加
 * @param data
 * @returns
 */
export const addUserLabelGroupApi: IAddUserLabelGroupApi = function (data) {
  return request.post('htscrm/users/add', data);
};

/**
 * @description 编辑
 * @param data
 * @returns
 */
export const updateUserLabelGroupApi: IUpdateUserLabelGroupApi = function (data) {
  return request.post(`htscrm/users/edit/${data.id}`, data);
};

/**
 * @description 删除
 * @param data
 * @returns
 */
export const deleteUserLabelGroupApi: IDeleteUserLabelGroupApi = function (id) {
  return request.post(`htscrm/users/del/${id}`);
};

/**
 * 批量删除
 * @param ids
 * @returns
 */
export const batchDeleteUserLabelGroupApi: IBatchDeleteUserLabelGroupApi = function(ids) {
  return request.post(`htscrm/activity/delete`, {ids})
}